package com.ebt.m.update;

import java.util.List;


public class ResultCheckUpdateApk {
	public boolean hasNewApk = false;
	public String apkUrl;
	public String apkVersion;
	public List<VersionLog> versionLogList;
	public String errorMsg;
	public ResultCheckUpdateApk(boolean hasNewApk,String apkUrl,String apkVersion,List<VersionLog> versionLogList,String errorMsg){
		this.hasNewApk = hasNewApk;
		this.apkUrl = apkUrl;
		this.apkVersion = apkVersion;
		this.versionLogList = versionLogList;
		this.errorMsg = errorMsg;
	}
	public String getVersionLog(){
		StringBuffer sb = new StringBuffer();
		if(versionLogList!=null&&versionLogList.size()!=0){
			for (VersionLog vl : versionLogList) {
				sb.append("版本号："+vl.getVersionID()+"\n\r")
//				.append("版本日期："+vl.getReleaseDate()+"\n\r")
//				.append("更新模块："+vl.getModule()+"\n\r")
//				.append("更新操作："+vl.getCategory()+"\n\r")
//				.append("更新内容："+"\n\r")
				.append(vl.getDescription()+"\n\r");
			}
			sb.append("\n\r");
		}
		return sb.toString();
	}
}
